﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Syndication;
using System.ServiceModel.Web;

namespace RssServiceLibrary
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IIRssFeedService" in both code and config file together.
    [ServiceContract]
    public interface IIRssFeedService
    {
        [ServiceKnownType(typeof(Atom10FeedFormatter))]
        [ServiceKnownType(typeof(Rss20FeedFormatter))]
        [WebGet(UriTemplate = "blog/{format}")]
        [OperationContract]
        SyndicationFeedFormatter Rss(string format);
    }
}
